class CreateEntries < ActiveRecord::Migration
  def self.up
    create_table :entries do |t|
      t.column :category_id, :integer
      t.column :title, :string, :null => false
      t.column :content, :text, :null => false
      t.column :count, :integer, :default => 0
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end
  end

  def self.down
    drop_table :entries
  end
end
